<template>
  <div>
    
    <div class="card-header">
      <span>{{title}}</span>
      <svg t="1637478175000" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2179" width="16" height="16">
        <path d="M536 480v192a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16V480a16 16 0 0 1 16-16h16a16 16 0 0 1 16 16z m-32-128h16a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16z m8 448c159.056 0 288-128.944 288-288s-128.944-288-288-288-288 128.944-288 288 128.944 288 288 288z m0 48c-185.568 0-336-150.432-336-336s150.432-336 336-336 336 150.432 336 336-150.432 336-336 336z" p-id="2180" fill="#8a8a8a"></path>
      </svg>
    </div>

    <div class="card-content">
      {{count}}
    </div>

    <div class="card-charts">
      <slot name="charts"></slot>
    </div>

    <div class="card-footer">
      <slot name="footer"></slot>
    </div>

  </div>
</template>

<script>
// 这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
export default {
  // 定义属性
  props: ["title", "count"],
  name:'Detail',
  data() {
    return {};
  },
};
</script>
<style>
.card-header {
  display: flex;
  justify-content: space-between;
  color: #b9b9b9;
}
.card-content {
  font-size: 30px;
  padding: 10px 0;
}
.card-charts {
  height: 50px;
}
.card-footer {
  border-top: 1px solid #eee;
  padding-top: 10px 0;
}
</style>